/**

 * @author zhaokai

 * @date 2019-11-12 21:43

 */

// jwt.js,token中间件
const expressJwt = require("express-jwt");
const { secretKey } = require('../constant/constant');
const jwtAuth = expressJwt({secret: "secret"}).unless({path: ["/api/user/login", "/api/user/register"]});

module.exports = jwtAuth;